Title: Year 12 / Computer Science / Practical / 9 - Algorithm Design and Problem Solving / 9.2 - Algorithms

Q: State what is meant by an algorithm
A: a sequence of defined steps that are carried out to perform a task

Q: Describe what is meant by an "identifier"
A: a unique name given to a variable in order to call it

Q: Describe what is meant by an "identifier table"
A: table that shows information about a variable, such as identifier, data type and description

Q: State 5 rules for naming identifiers
A: must be unique,
spaces must not be used,
must begin with a letter of the alphabet,
consist of only letters, digits and underscore character,
must not be a reserved word, eg print

Q: Write pseudocode for inputting something
A: INPUT variablename

Q: Write pseudocode for outputting something
A: OUTPUT <string>

Q: Explain what is meant by the construct of assignment
A: an instruction in a program that places a value into a specified variable

Q: Explain what is meant by the construct of sequence
A: programming statements are executed consequently as they appear in the program

Q: Explain what is meant by the construct of selection
A: its a control structure in which theres a test to decide if certain instructions are executed

Q: Explain what is meant by the construct of iteration/repetition
A: its a control structure in which a group of statements is executed repeatedly

Q: State what this symbol in a flowchart represents:
A: terminal (start or end of program)

Q: State what this symbol in a flowchart represents:
A: process

Q: State what this symbol in a flowchart represents:
A: decision (conditional statement)

Q: State what this symbol in a flowchart represents:
A: input or output

Q: State what this symbol in a flowchart represents:
A: annotation (comment)

Q: State what this symbol in a flowchart represents:
A: predefined process/module